package com.caregiver.watch.business.data.controller;


import com.caregiver.watch.business.data.service.DeviceDataService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;


@Slf4j
@RestController
@RequestMapping("/deviceinfo")
public class DeviceInfoController {

    @Autowired
    private DeviceDataService deviceService;

    @RequestMapping(value = "upload", method = RequestMethod.POST)
    private void uploadDeviceInfoData(HttpServletRequest req, HttpServletResponse resp) {
        deviceService.uploadDeviceInfoData(req, resp);
    }
}
